![]() |
PATH![]() |
![]() ![]() |
As discussed in A Checklist for Creating a Theme-Compliant Program , the easiest way to have your program's interface be theme-compliant is to use the system-defined menus, windows, and controls rather than creating your own. For example, the Mac OS 8 Control Manager supports a variety of new control definitions, as well as enhancements to existing controls, all of which are completely theme-compliant. In the case of your program's controls, if you find that you cannot use the system definitions supplied by Control Manager for all your needs, you then should use the Appearance Manager to ensure that those custom control elements in your program are theme-compliant.
The following four "before and after" case studies show how you can use the Appearance Manager to make a custom control element theme-compliant. Each case presents both a non-theme-compliant, custom control element (in our examples, a frame for an editable text field) and the theme-compliant version of the same element. The cases differ in the ways in which the non-theme-compliant elements have originally been implemented, which, in turn, affects how one makes the elements theme-compliant with the Appearance Manager. You may note that--even in these simple examples--in each case drawing the element with the Appearance Manager requires even less code than is needed for the original, non-theme-compliant drawing.
For a discussion of drawing theme-compliant tracks in your program, see Drawing Tracks .